package com.xcf.util;

import java.util.ArrayList;
import java.util.List;

import net.sf.json.JSONArray;

public class JsonConvertPageData {
   
	public static List<PageData> converAnswerFormString(String json){  
        if (json == null || json.equals(""))  
            return new ArrayList();  
  
        JSONArray jsonArray = JSONArray.fromObject(json);  
        List<PageData> list = (List) JSONArray.toCollection(jsonArray,  
        		PageData.class);  
          
        return list;  
    } 
}

